add element replace parser for cp2k output and refactor the unittest for cp2k output#234
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #234 +/- ##
==========================================
+ Coverage 82.04% 82.09% +0.05%
==========================================
Files 58 58
Lines 5034 5043 +9
==========================================
+ Hits 4130 4140 +10
+ Misses 904 903 -1
Continue to review full report at Codecov.
|
wanghan-iapcm
approved these changes
Dec 10, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cp2k can replace atomic symbol to fine tune the atomic state when labeling.
For example: Fe in Fe2O3 has two states where one has 5 d alpha electron and the other one has 5 d beta electron.
In cp2k input KIND SECTION, KIND symbols can be replaced with
Fe1andFe2, meanwhile the ELEMENT keyword is set toFe, such asAnd the output for coordinate is
it is obvious that parsing element symbol can't distinguish the two types of 'Fe'
Now, I parse the
first, in cp2k output
then replace the
element Kindwith the symbols in coordinate block.